<!--
 * @FilePath     : /study_code/layui/7-4.html
 * @Description  : 从小屏幕堆叠到桌面水平排列
 * @Date         : 2025-04-10 13:31:54
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-10 13:32:02
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
    <link rel="stylesheet" href="/layui/grid/css/style.css" />
  </head>
  <body>
    <p>大于 md 的采用下面比例布局。小于 md 尺寸的，样式为 block，默认继承父级 100% 宽度。</p>

    <h2>12等分</h2>
    <div class="layui-row">
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo grid-demo-bg1">1/12</div>
      </div>
      <div class="layui-col-md1">
        <div class="grid-demo">1/12</div>
      </div>
    </div>

    <hr />
    <h2>3 1 分</h2>
    <div class="layui-row">
      <div class="layui-col-md9">
        <div class="grid-demo grid-demo-bg1">75%</div>
      </div>
      <div class="layui-col-md3">
        <div class="grid-demo">25%</div>
      </div>
    </div>

    <hr />
    <h2>3 等分</h2>
    <div class="layui-row">
      <div class="layui-col-md4">
        <div class="grid-demo grid-demo-bg1">33.33%</div>
      </div>
      <div class="layui-col-md4">
        <div class="grid-demo">33.33%</div>
      </div>
      <div class="layui-col-md4">
        <div class="grid-demo grid-demo-bg1">33.33%</div>
      </div>
    </div>

    <hr />
    <h2>对分</h2>
    <div class="layui-row">
      <div class="layui-col-md6">
        <div class="grid-demo grid-demo-bg1">50%</div>
      </div>
      <div class="layui-col-md6">
        <div class="grid-demo">50%</div>
      </div>
    </div>

    <script src="/layui/dist/layui.js"></script>
    <script>
      console.log(1, layui)
    </script>
  </body>
</html>
